package cn.example.vip.mall.canal;

import cn.example.vip.mall.canal.dynamic.DynamicConfig;
import cn.example.vip.mall.filter.CORSFilter;
import cn.example.vip.mall.goods.feign.NginxCacheFeign;
import cn.example.vip.mall.goods.feign.SkuFeign;
import cn.example.vip.mall.page.feign.PageFeign;
import cn.example.vip.mall.page.feign.SeckillPageFeign;
import cn.example.vip.mall.permission.feign.PermissionFeign;
import cn.example.vip.mall.search.feign.SeckillGoodsSearchFeign;
import cn.example.vip.mall.search.feign.SkuSearchFeign;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@EnableFeignClients(basePackageClasses = {
	SkuFeign.class,
	NginxCacheFeign.class,
	SkuSearchFeign.class,
	SeckillGoodsSearchFeign.class,
	PageFeign.class,
	SeckillPageFeign.class,
	PermissionFeign.class
})
@Import({
	DynamicConfig.class,
	CORSFilter.class
})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class MallCanalApplication {
	public static void main(String[] args) {
		SpringApplication.run(MallCanalApplication.class, args);
	}
}
